package com.ftdigital.primemovers_operators.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Curry on 2015-12-25.
 */
public class AddOilInfo implements Serializable {


    /**
     * flag : true
     * msg : 成功
     * data : {"car_num":"京A11111","car_id":210,"name":"瞬风物流","contract_url":"097ed82e-92d0-4d8b-ae4a-3710bd41c529.docx","icon_url":"9c86aea5-7bb8-4c5a-89da-9bd2bf046068.jpg","contract_id":5,"city":"江苏省","descs":"瞬风物流和南京大唐油品供应商签订了为期一年的油品供销合同","car_type":"15","list":[{"amount":"100000.00L","discount1":"本价格基于当地市场价格，已优惠20.00%","price":4.088,"gas_type":"0# 柴油","localprice":5.11,"discount":"每升优惠20.00%"}],"driverList":[{"name":"赵信","mobile":"13057586972"}]}
     */

    private boolean flag;
    private String msg;
    /**
     * car_num : 京A11111
     * car_id : 210
     * name : 瞬风物流
     * contract_url : 097ed82e-92d0-4d8b-ae4a-3710bd41c529.docx
     * icon_url : 9c86aea5-7bb8-4c5a-89da-9bd2bf046068.jpg
     * contract_id : 5
     * city : 江苏省
     * descs : 瞬风物流和南京大唐油品供应商签订了为期一年的油品供销合同
     * car_type : 15
     * list : [{"amount":"100000.00L","discount1":"本价格基于当地市场价格，已优惠20.00%","price":4.088,"gas_type":"0# 柴油","localprice":5.11,"discount":"每升优惠20.00%"}]
     * driverList : [{"name":"赵信","mobile":"13057586972"}]
     */

    private DataEntity data;

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public boolean isFlag() {
        return flag;
    }

    public String getMsg() {
        return msg;
    }

    public DataEntity getData() {
        return data;
    }


    public static class DataEntity implements Serializable {
        private String car_num;
        private int car_id;
        private String name;
        private String contract_url;
        private String icon_url;
        private int contract_id;
        private String city;
        private String descs;
        private String car_type;
        /**
         * amount : 100000.00L
         * discount1 : 本价格基于当地市场价格，已优惠20.00%
         * price : 4.088
         * gas_type : 0# 柴油
         * localprice : 5.11
         * discount : 每升优惠20.00%
         */

        private List<ListEntity> list;
        /**
         * name : 赵信
         * mobile : 13057586972
         */

        private List<DriverListEntity> driverList;

        public void setCar_num(String car_num) {
            this.car_num = car_num;
        }

        public void setCar_id(int car_id) {
            this.car_id = car_id;
        }

        public void setName(String name) {
            this.name = name;
        }

        public void setContract_url(String contract_url) {
            this.contract_url = contract_url;
        }

        public void setIcon_url(String icon_url) {
            this.icon_url = icon_url;
        }

        public void setContract_id(int contract_id) {
            this.contract_id = contract_id;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public void setDescs(String descs) {
            this.descs = descs;
        }

        public void setCar_type(String car_type) {
            this.car_type = car_type;
        }

        public void setList(List<ListEntity> list) {
            this.list = list;
        }

        public void setDriverList(List<DriverListEntity> driverList) {
            this.driverList = driverList;
        }

        public String getCar_num() {
            return car_num;
        }

        public int getCar_id() {
            return car_id;
        }

        public String getName() {
            return name;
        }

        public String getContract_url() {
            return contract_url;
        }

        public String getIcon_url() {
            return icon_url;
        }

        public int getContract_id() {
            return contract_id;
        }

        public String getCity() {
            return city;
        }

        public String getDescs() {
            return descs;
        }

        public String getCar_type() {
            return car_type;
        }

        public List<ListEntity> getList() {
            return list;
        }

        public List<DriverListEntity> getDriverList() {
            return driverList;
        }

        public static class ListEntity implements Serializable{
            private String amount;
            private String discount1;
            private double price;
            private String gas_type;
            private double localprice;
            private String discount;
            private String amountNum;
            private String totalPrice;

            public String getAmountNum() {
                return amountNum;
            }

            public void setAmountNum(String amountNum) {
                this.amountNum = amountNum;
            }

            public String getTotalPrice() {
                return totalPrice;
            }

            public void setTotalPrice(String totalPrice) {
                this.totalPrice = totalPrice;
            }

            public void setAmount(String amount) {
                this.amount = amount;
            }

            public void setDiscount1(String discount1) {
                this.discount1 = discount1;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public void setGas_type(String gas_type) {
                this.gas_type = gas_type;
            }

            public void setLocalprice(double localprice) {
                this.localprice = localprice;
            }

            public void setDiscount(String discount) {
                this.discount = discount;
            }

            public String getAmount() {
                return amount;
            }

            public String getDiscount1() {
                return discount1;
            }

            public double getPrice() {
                return price;
            }

            public String getGas_type() {
                return gas_type;
            }

            public double getLocalprice() {
                return localprice;
            }

            public String getDiscount() {
                return discount;
            }
        }

        public static class DriverListEntity implements Serializable{
            private String name;
            private String mobile;

            public void setName(String name) {
                this.name = name;
            }

            public void setMobile(String mobile) {
                this.mobile = mobile;
            }

            public String getName() {
                return name;
            }

            public String getMobile() {
                return mobile;
            }
        }
    }
}
